home *** CD-ROM | disk | FTP | other *** search
- import java.applet.Applet;
- import java.awt.Color;
- import java.awt.Component;
- import java.awt.Container;
- import java.awt.Dimension;
- import java.awt.Event;
- import java.awt.Font;
- import java.awt.Frame;
- import java.awt.Graphics;
- import java.net.URL;
-
- public class anFXApplet extends Applet implements Runnable {
- // $FF: renamed from: AP boolean
- protected boolean field_0 = true;
- // $FF: renamed from: DM java.awt.Color
- public Color field_1;
- // $FF: renamed from: Ey java.awt.Color
- protected Color field_2;
- // $FF: renamed from: FO short
- public short field_3;
- // $FF: renamed from: EF short
- public short field_4;
- // $FF: renamed from: Jl boolean
- protected static boolean field_5;
- // $FF: renamed from: CJ int
- protected int field_6;
- // $FF: renamed from: Jh java.awt.Frame
- public Frame field_7;
- // $FF: renamed from: DN boolean
- public boolean field_8;
- // $FF: renamed from: DY int
- protected int field_9;
- // $FF: renamed from: AF boolean
- public boolean field_10;
- // $FF: renamed from: IE AppletService
- AppletService field_11;
-
- public void run() {
- Object var1 = null;
- Object var2 = null;
-
- try {
- System.out.println("loading rest");
- Class var6 = Class.forName("c03");
-
- try {
- System.out.println("done");
- AppletService var7 = (AppletService)var6.newInstance();
- var7.Cx(this);
- var7.init();
- this.field_11 = var7;
- ((Component)this).repaint();
- var7.start();
- } catch (Exception var4) {
- this.method_0(this.field_6, -8);
- }
- } catch (Exception var5) {
- System.out.println("Exception: " + ((Throwable)var5).toString());
- this.method_0(this.field_6, -7);
- }
- }
-
- // $FF: renamed from: BP (int, int) void
- public void method_0(int var1, int var2) {
- if (!this.field_8) {
- this.field_9 = var2;
- this.field_8 = true;
-
- try {
- URL var3 = new URL("http://www.stepahead.com.au/eserver/servlet/eServlet?command=error&en=" + this.field_9 + "&tm=" + var1 * 7 + "&url=" + (field_5 ? "local" : ((Applet)this).getDocumentBase().toString()));
- ((Applet)this).getAppletContext().showDocument(var3, "_blank");
- } catch (Exception var4) {
- }
- }
- }
-
- public void update(Graphics var1) {
- this.paint(var1);
- }
-
- public String getAppletInfo() {
- return "AnFX 4.9.15\n(c) 1996,2002 Step Ahead Software. All rights reserved.\nhttp://stepaheadsoftware.com/anfx.htm";
- }
-
- // $FF: renamed from: EJ () boolean
- public static boolean method_1() {
- return field_5;
- }
-
- public boolean handleEvent(Event var1) {
- return this.field_11 != null ? this.field_11.handleEvent(var1) : false;
- }
-
- public void paint(Graphics var1) {
- if (this.field_11 == null) {
- Font var2 = new Font("Arial", 1, 18);
- var1.setFont(var2);
- var1.setColor(this.field_2);
- if (this.field_8) {
- var1.drawString("Error# " + this.field_9 + ". Opening help in a new window...", 20, 55);
- return;
- }
-
- var1.drawString("please wait...", 20, 55);
- if (this.field_0) {
- this.field_0 = false;
- (new Thread(this)).start();
- return;
- }
- } else {
- this.field_11.paint(var1);
- }
-
- }
-
- public synchronized void destroy() {
- if (this.field_11 != null) {
- this.field_11.destroy();
- }
-
- }
-
- public void stop() {
- if (this.field_11 != null) {
- this.field_11.stop();
- }
-
- }
-
- public synchronized void start() {
- if (this.field_11 != null) {
- this.field_11.start();
- }
-
- }
-
- public void init() {
- System.out.println(this.getAppletInfo());
- if (((Applet)this).getDocumentBase().toString().toLowerCase().startsWith("http")) {
- field_5 = false;
- } else {
- field_5 = true;
- System.out.println("Local Mode");
- }
-
- if (((Applet)this).getParameter("gold") != null) {
- this.field_6 = 500000;
- }
-
- if (((Applet)this).getParameter("silver") != null) {
- this.field_6 = 500000;
- }
-
- String var1 = ((Applet)this).getParameter("bgcolor");
- int var2 = 16777215;
-
- try {
- var2 = Integer.parseInt(var1, 16);
- String var3 = System.getProperty("java.version");
- if (var3.startsWith("1.0")) {
- this.method_0(this.field_6, -101);
- } else if (!var3.startsWith("1.1")) {
- this.field_10 = true;
- }
-
- System.out.println("Java " + var3);
- } catch (Exception var6) {
- }
-
- this.field_1 = new Color(var2);
- if (this.field_6 == 500000) {
- ((Component)this).setBackground(this.field_1);
- }
-
- var1 = ((Applet)this).getParameter("fgcolor");
- var2 = 255;
-
- try {
- var2 = Integer.parseInt(var1, 16);
- } catch (Exception var5) {
- }
-
- this.field_2 = new Color(var2);
- Dimension var9 = ((Component)this).size();
- this.field_3 = (short)var9.width;
- this.field_4 = (short)var9.height;
-
- Container var4;
- for(var4 = ((Component)this).getParent(); !(var4 instanceof Frame); var4 = ((Component)var4).getParent()) {
- }
-
- this.field_7 = (Frame)var4;
- }
-
- public anFXApplet() {
- this.field_1 = Color.white;
- this.field_2 = Color.blue;
- this.field_3 = 500;
- this.field_4 = 200;
- this.field_8 = false;
- this.field_10 = false;
- }
- }
-